package com.txzhang.controller;

import com.txzhang.annotations.*;
import com.txzhang.service.StudentService;
import com.txzhang.service.TestService;

/**
 * @author txzhang
 * @date 2021/1/5 14:41
 */
@RestController
public class TestController {

    @Autowired
    private StudentService studentService;
    @Autowired
    private TestService testService;

    @RequestMapping("/test")
    public String test() {
        return testService.getName();
    }

    @RequestMapping("/json")
    public String json() {
        return testService.getJson();
    }

    @RequestMapping("/student")
    public Object getStudent() {
        return testService.getStudent();
    }

    @RequestMapping("/json1")
    public String json1() {
        return studentService.getJson();
    }
}
